﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ITAP.ShprossesBuilder.Operations;

namespace ITAP.ShprossesBuilder.Editor
{
    public partial class CreateShprossBarForm : Form
    {
        public bool CreateSnapOnCaps
        {
            get
            {
                return checkBoxFitSnapOnCaps.Checked;
            }
        }

        public int HorizontalCount
        {
            get
            {
                return (int)numericUpDownHorizontal.Value;
            }
        }

        public int VerticalCount
        {
            get
            {
                return (int)numericUpDownVertical.Value;
            }
        }

        private BarBorder barBorder = BarBorder.ByInner;
        public BarBorder BarBorder
        {
            get
            {
                return barBorder;
            }
        }

        public CreateShprossBarForm()
        {
            InitializeComponent();           
        }

        private void CreateShprossBarForm_Load(object sender, EventArgs e)
        {

        }

        private void radioButtonInner_CheckedChanged(object sender, EventArgs e)
        {
            barBorder = BarBorder.ByInner;
        }

        private void radioButtonOuter_CheckedChanged(object sender, EventArgs e)
        {
            barBorder = BarBorder.ByOuter;
        }

        private void radioButtonModelCell_CheckedChanged(object sender, EventArgs e)
        {
            barBorder = BarBorder.ByModelCell;
        }
    }
}
